/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package slicktemplate;

import java.util.ArrayList;

/**
 *
 * @author student
 * For show I guess
 */
public class Stack {
    private ArrayList<Object> stack = new ArrayList<Object>();
    public Stack(){

    }
    public void push(Object topush){
        stack.add(topush);
    }
    public Object peek(){
        return stack.get(0);
    }
    public Object pop(){
        Object popped = stack.get(0);
        stack.remove(0);
        return popped;
    }
    public int size(){
        return stack.size();
    }
    public boolean isEmpty(){
        return stack.isEmpty();
    }

}
